import { axios } from '@/utils/request'

export function queryQuestion (parameter) {
  return axios({
    url: '/question/query',
    method: 'post',
    data: parameter
  })
}

export function addQuestion (parameter) {
  return axios({
    url: '/question/add',
    method: 'post',
    data: parameter
  })
}

export function updateQuestion (parameter) {
  return axios({
    url: '/question/update',
    method: 'post',
    data: parameter
  })
}

export function updateStatus (parameter) {
  return axios({
    url: '/question/updateStatus',
    method: 'post',
    data: parameter
  })
}

export function updateStatusList (parameter) {
  return axios({
    url: '/question/updateStatusList',
    method: 'post',
    data: parameter
  })
}

export function removeQuestion (parameter) {
  return axios({
    url: '/question/remove',
    method: 'post',
    data: parameter
  })
}

export function questionInfoByQuestionId (parameter) {
  return axios({
    url: '/question/questionInfoByQuestionId',
    method: 'post',
    data: parameter
  })
}
